package cn.stylefeng.guns.modular.manager.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 支付信息
 * </p>
 *
 * @author yumker
 * @since 2021-01-16
 */
@TableName("flow_pay_info")
public class FlowPayInfo implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "pay_info_id", type = IdType.ID_WORKER)
    private Long payInfoId;

    @TableField("order_id")
    private Long orderId;

    /**
     * 0未支付 1已支付 2支付已取消
     */
    @TableField("pay_status")
    private Integer payStatus;

    /**
     * 0 未退款 1已退款 2退款成功
     */
    @TableField("is_refund")
    private Integer isRefund;

    /**
     * 支付类型 0支付宝
     */
    @TableField("pay_type")
    private Integer payType;

      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

      @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    @TableField("pay_time")
    private Date payTime;

    @TableField("pay_notify")
    private String payNotify;

    @TableField("refund_nofity")
    private String refundNofity;

    @TableField("pay_code")
    private String payCode;

    @TableField("refund_code")
    private String refundCode;

    @TableField("moneys")
    private BigDecimal moneys;

    @TableField("trade_no")
    private String tradeNo;

    @TableField("user_id")
    private String userId;


    public Long getPayInfoId() {
        return payInfoId;
    }

    public void setPayInfoId(Long payInfoId) {
        this.payInfoId = payInfoId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Integer getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(Integer payStatus) {
        this.payStatus = payStatus;
    }

    public Integer getIsRefund() {
        return isRefund;
    }

    public void setIsRefund(Integer isRefund) {
        this.isRefund = isRefund;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public String getPayNotify() {
        return payNotify;
    }

    public void setPayNotify(String payNotify) {
        this.payNotify = payNotify;
    }

    public String getRefundNofity() {
        return refundNofity;
    }

    public void setRefundNofity(String refundNofity) {
        this.refundNofity = refundNofity;
    }

    public String getPayCode() {
        return payCode;
    }

    public void setPayCode(String payCode) {
        this.payCode = payCode;
    }

    public String getRefundCode() {
        return refundCode;
    }

    public void setRefundCode(String refundCode) {
        this.refundCode = refundCode;
    }

    public BigDecimal getMoneys() {
        return moneys;
    }

    public void setMoneys(BigDecimal moneys) {
        this.moneys = moneys;
    }

    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "FlowPayInfo{" +
        "payInfoId=" + payInfoId +
        ", orderId=" + orderId +
        ", payStatus=" + payStatus +
        ", isRefund=" + isRefund +
        ", payType=" + payType +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", payTime=" + payTime +
        ", payNotify=" + payNotify +
        ", refundNofity=" + refundNofity +
        ", payCode=" + payCode +
        ", refundCode=" + refundCode +
        ", moneys=" + moneys +
        ", tradeNo=" + tradeNo +
        ", userId=" + userId +
        "}";
    }
}
